// 公共调用方法
import { store } from  '@/store/index'

const conf = {

    // 关闭表单
    outForm (){
        store.commit('carTableStore/foldingLayerSwitch', 'close')
    },

    // 刷新订单列表
    updateTable (){
        store.dispatch('carTableStore/initSet')
    }
    
}

function actions(...arg){

    arg.forEach(key =>{

        try {

            conf[key]()
            
        } catch (error) {
            
            console.log(`方法错误 ${key}`)
            
        }
        
    })
    
}

export default actions;